﻿using System;
using ch03.binary.type;

namespace ch03.binary.module
{
    using TypeIdx = UInt32;
    using MemType = Limits;

    public struct Import
    {
        internal string Module;
        internal string Name;
        internal ImportDesc Desc;
    }


    struct ImportDesc
    {
        internal byte Tag;
        internal TypeIdx FuncType; // tag=0
        internal TableType Table; // tag=1
        internal MemType Mem; // tag=2
        internal GlobalType Global; // tag=3
    }
}